package com.qf.responsdata;

/**
 * @author 高圆圆
 * @date 2022/12/27 16:27
 * 响应给浏览器的自定义实体
 *
 *
 *
 * {"code":1,"msg":"用户可以用"}
 * {"code":0,"msg":"用户不可用"}
 */
public class ResponseData {

    private int code ;      //响应的状态码 1 表示 有数据 ,0 表示没数据
    private String msg ;  //响应的字符串消息提示

    public ResponseData() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }

    //ResponseData{code="xx",msg="xxx"}
}
